#include "MyInclude.h"
#include "BuildTree.h"

#include <vector>
#include <string>
using namespace std;

void main()
{
	CBuildTree build;
	string str = "F or ( A and ( ( B or C) or D)) and E";
	//str = "A and ((B or C) or D)";
	//str = "A and B";

	build.Build(str);
	build.Assign("A", true);
	build.Assign("B", false);
	build.Assign("C", false);
	build.Assign("D", true);
	build.Assign("E", true);
	build.Assign("F", false);
	cout << build.Compute() << endl;

	getchar();
}